<?php
// 持久化好存
define( 'XUANWEN_DEVICE_HASH_LIST' 	, 'xuanwen_device_unique_redis_hash');
// 队列
define( 'XUANWEN_DEVICE_QUEUE' 		, 'xuanwen_device_unique_queue');
$_SERVER['LOTTERY'] = array(
						// 环境
						'env'	=> 'test' , //环境，dev开发环境,test测试环境,emu仿真环境,pro生产环境
						// 抽奖说明
						'info'  => array(
									'content' => '用户每天只要打开客户端进行三次分享，就可获得三次抽奖资格，超丰厚的奖品，你还在等什么，快来分享把！！！【'.__SYS_APP_DOMAIN__.'show/down】' ,
									'title'	  => '好内容要大家分享～好礼送不停！' ,
									'thumb'	  => '' ,
									'shareurl'=> __SYS_APP_DOMAIN__.'show/down' ,
									),
						// 奖品说明
						'lotteryinfo' => array(
											0 => array(
												'id' 	=> '' ,
												'name'	=> '特等奖' ,
												'jpname'=> 'iphone6' ,
												'thumb' => '/lotterystatic/images/prize1.png' ,
											),
											1 => array(
												'id' 	=> '' ,
												'name'	=> '一等奖' ,
												'jpname'=> '移动电源',
												'thumb' => '/lotterystatic/images/prize2.png' ,
											),
											2 => array(
												'id' 	=> '' ,
												'name'	=> '二等奖' ,
												'jpname'=> '充值卡',
												'thumb' => '/lotterystatic/images/prize3.png' ,
											),
										 ),
						// 分享插件配置
						'shareinfo'   => array(
											'sina_weibo' 	=> array() ,
											'tencent_weibo'	=> array() ,
											'tencent_qzone'	=> array() ,
											'tencent_weixin'=> array() ,
										 ),
						// 调用金涛的抽奖接口地址
						'apiurl'=> array(
								// 生产环境
										'pro'	=> array(
													// 获取抽奖次数 2.9
													'getlotterycount' => array(
																			
																			'params'=> array(
																						'url'		 => 'http://score.new.qnsaas.com/score/querylotteryScore' ,
																						'method'     => 'get' ,
																						'param' 	 => array(
																										'phoneNumber'=> '',
																										'bId'		 => 1,
																										'eventId'	 => 1001
																										)
																				        ),
																		 ),
													// 提交领奖信息 2.5
													'submitlotteryinfo' => array(
																			'params'=>array(
																						'url'	=> 'http://score.new.qnsaas.com/score/updateUserInfo' ,
																						'method'=> 'get',
																						'param'	=> array(
																									'id'		=> '',		
																									'phone' 	=> '', 		
																									'userName' 	=> '',		
																									'address'	=> '',		
																									'smsPwd' 	=> '',		
																									'bId'	 	=> 1 , 	   
																									)
																					),
																		 ),
													// 获取昨天中奖的列表 2.6
													'getyesterdaylotterylist' => array(
																			'params'=>array(
																						'url'	=> 'http://score.new.qnsaas.com/score/queryWinnersInfo' ,
																						'method'=> 'get',
																						'param'	=> array(
																									'bId'		 => 1,
																									)
																					),
																		 ),
													// 获取自己中奖的列表信息 2.4
													'getmylotterylist'	=> array(
																			'params'=>array(
																						'url'	=> 'http://score.new.qnsaas.com/score/querySelfPrizes' ,
																						'method'=> 'get',
																						'param'	=> array(
																									'phoneNumber'=> '',
																									'bId'		 => 1,
																									)
																					),
																		 ),
													// 获取刮刮信息 2.3
													'getguaguainfo'		=> array(
																			'params'=>array(
																						'url'	=> 'http://score.new.qnsaas.com/score/draw' ,
																						'method'=> 'get',
																						'param'	=> array(
																									'phoneNumber'	=> '' , //	String	是	用户标识
																									'bId'			=> 1 , //	int	是	业务标识
																									'userTypeId'	=> 'XHXW' , //
																									'eventId'		=> 1002,    // int	是	事件类型
																									)
																					),
																		 ),
													// 下发短信验证码 2.7  
													'sendsms'			=> array(
																			'params'=>array(
																						'url'	=> 'http://score.new.qnsaas.com/score/getsmsPwd' ,
																						'method'=> 'get',
																						'param'	=> array(
																									'id'		=> 'xhxw' ,
																									'pwd'	    => 'xhxw' ,
																									'phoneNumer'=> '',
																									)
																					),
																		 ),
													// 激活3.0
													'active'			=> array(
																			'params' => array(
																						'url'	=> 'http://score.new.qnsaas.com/score/activate',
																						'method'=> 'get',
																						'param'	=> array(
																									'id'  => '' ,
																									'bId' => 1,
																									),
																					),
																		),
													// 分享URl 2.1
													'shareurl'			=> array(
																			'params'=> array(
																						'url' 	 => 'http://score.new.qnsaas.com/score/addscore' ,
																						'method' => 'get' ,
																						'param'  => array(
																									'phoneNumber' => '' ,
																									'bId'		  => 1 ,
																									'userTypeId'  => 'XHXW' ,
																									'eventId'	  => 1001
																									)
																						
																					   ),
																		 )
													),
								//  测试环境		
										'test'	=> array(
													// 获取抽奖次数 2.9
													'getlotterycount' => array(
																			
																			'params'=> array(
																						'url'		 => 'http://10.130.18.206:9099/score/querylotteryScore' ,
																						'method'     => 'get' ,
																						'param' 	 => array(
																										'phoneNumber'=> '',
																										'bId'		 => 1,
																										'eventId'	 => 1001
																										)
																				        ),
																		 ),
													// 提交领奖信息 2.5
													'submitlotteryinfo' => array(
																			'params'=>array(
																						'url'	=> 'http://10.130.18.206:9099/score/updateUserInfo' ,
																						'method'=> 'get',
																						'param'	=> array(
																									'id'		=> '',		
																									'phone' 	=> '', 		
																									'userName' 	=> '',		
																									'address'	=> '',		
																									'smsPwd' 	=> '',		
																									'bId'	 	=> 1 , 	   
																									)
																					),
																		 ),
													// 获取昨天中奖的列表 2.6
													'getyesterdaylotterylist' => array(
																			'params'=>array(
																						'url'	=> 'http://10.130.18.206:9099/score/queryWinnersInfo' ,
																						'method'=> 'get',
																						'param'	=> array(
																									'bId'		 => 1,
																									)
																					),
																		 ),
													// 获取自己中奖的列表信息 2.4
													'getmylotterylist'	=> array(
																			'params'=>array(
																						'url'	=> 'http://10.130.18.206:9099/score/querySelfPrizes' ,
																						'method'=> 'get',
																						'param'	=> array(
																									'phoneNumber'=> '',
																									'bId'		 => 1,
																									)
																					),
																		 ),
													// 获取刮刮信息 2.3
													'getguaguainfo'		=> array(
																			'params'=>array(
																						'url'	=> 'http://10.130.18.206:9099/score/draw' ,
																						'method'=> 'get',
																						'param'	=> array(
																									'phoneNumber'	=> '' , //	String	是	用户标识
																									'bId'			=> 1 , //	int	是	业务标识
																									'userTypeId'	=> 'XHXW' , //
																									'eventId'		=> 1002,    // int	是	事件类型
																									)
																					),
																		 ),
													// 下发短信验证码 2.7  
													'sendsms'			=> array(
																			'params'=>array(
																						'url'	=> 'http://10.130.18.206:9099/score/getsmsPwd' ,
																						'method'=> 'get',
																						'param'	=> array(
																									'id'		=> 'xhxw' ,
																									'pwd'	    => 'xhxw' ,
																									'phoneNumer'=> '',
																									)
																					),
																		 ),
													// 激活3.0
													'active'			=> array(
																			'params' => array(
																						'url'	=> 'http://10.130.18.206:9099/score/activate',
																						'method'=> 'get',
																						'param'	=> array(
																									'id'  => '' ,
																									'bId' => 1,
																									),
																					),
																		),
													// 分享URl 2.1
													'shareurl'			=> array(
																			'params'=> array(
																						'url' 	 => 'http://10.130.18.206:9099/score/addscore' ,
																						'method' => 'get' ,
																						'param'  => array(
																									'phoneNumber' => '' ,
																									'bId'		  => 1 ,
																									'userTypeId'  => 'XHXW' ,
																									'eventId'	  => 1001
																									)
																						
																					   ),
																		 )
													)
							  		),
					  );